//
//  MyEnshrineViewController.m
//  tryshopping.boss
//
//  Created by Mr.Lee on 2016/12/23.
//  Copyright © 2016年 Reabam. All rights reserved.
//

#import "MyEnshrineViewController.h"
#import "MyEnshrineGoodsController.h"   // 我收藏的商品
#import "MyEnshrineArticleController.h" // 我收藏的文章

@interface MyEnshrineViewController ()
@end

@implementation MyEnshrineViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"收藏夹";
    // 添加所有子控制器
    [self setUpAllChildViewController];
}


//  添加所有子控制器
- (void)setUpAllChildViewController
{
    // 商品
    MyEnshrineGoodsController *vc = [[MyEnshrineGoodsController alloc] init];
    vc.title = @"商品";
    [self addChildViewController:vc];
    
    // 文章
    MyEnshrineArticleController *vc1 = [[MyEnshrineArticleController alloc] init];
    vc1.title = @"文章";
    [self addChildViewController:vc1];
    
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [[self rdv_tabBarController] setTabBarHidden:YES animated:YES];
    [self.navigationController setNavigationBarHidden:NO animated:YES];
}
- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    [[self rdv_tabBarController] setTabBarHidden:NO animated:YES];
}



@end
